<%-- 
    Document   : masterPage
    Created on : Jul 9, 2013, 8:48:35 AM
    Author     : Tingo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="./css/style.css" type="text/css"/>
        <title>JSP Page</title>
    </head>
    <body>
        <script type="text/javascript">
            function getCurrentPage(form){
                var link = document.URL.split("/")[4];
                form.action = "ControllerServlet?currentPage=" + link;
            }
        </script>
        <div class="loginBox">
            <div class="header_login">Thông tin cá nhân</div>
            <div class="content_login">
                <form method="POST" enctype="UTF-8" onsubmit="getCurrentPage(this)">
                    <input class="logintxt" type="text" name="txtUsername" value="Tên đăng nhập"
                           onblur="if(this.value=='') this.value='Tên đăng nhập'"
                           onfocus="if(this.value=='Tên đăng nhập') this.value=''"/><br/>
                    <input class="logintxt" type="password" name="txtPassword" value="********"
                           onblur="if(this.value=='') this.value='********'"
                           onfocus="if(this.value=='********') this.value=''"/><br/>
                    <c:if test="${not empty invalid}">
                        <span class="invalid_user">Sai tên đăng nhập/mật khẩu</span>
                    </c:if>
                    <input class="btlogin" type="submit" value="Đăng nhập" name="action" />
                    <input class="btlogin" type="reset" value="Nhập lại" />
                </form>
                <div class="loginreg">
                    <a href="ControllerServlet?action=regis">Đăng ký</a> |
                    <a href="getinfo.jsp">Quên mật khẩu</a>
                </div>
            </div>
        </div>
    </body>
</html>
